import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Page6 from './views/nav3/Page6.vue'
import echarts from './views/charts/echarts.vue'
import department from "./views/org/Department";
import employee from "./views/org/Employee";
import shop from "./views/org/Shop";
import Dictionary from "./views/org/Dictionary";
import DictionaryDetail from "./views/org/DictionaryDetail";
import ShopRegister from "./views/ShopRegister";
import Menu from "./views/system/Menu";
import Pet from "./views/pet/Pet";
import Role from "./views/system/Role";

let routes = [
    {
        path: '/shopRegister',
        component: ShopRegister,
        hidden: true
    },
    {
        path: '/',
        component: Home,
        name: 'Charts',
        iconCls: 'fa fa-bar-chart',
        leaf: true,//只有一个节点
        children: [
            { path: '/echarts', component: echarts, name: 'echarts' }
        ]
    },
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    // {
    //     path: '*',
    //     hidden: true,
    //     redirect: { path: '/404' }
    // },
    //动态路由代替main.js         //面板一 ********************************
    // {
    //     path: '/',
    //     component: Home,
    //     name: '部门管理系统',
    //     iconCls: 'el-icon-message',//图标样式class
    //     children: [
    //         { path: '/dept', component: department, name: '部门管理' },
    //         { path: '/Emp', component: employee, name: '员工列表' },
    //         { path: '/shop', component: shop, name: '店铺管理' },
    //     ]
    // },               //面板二 ********************************
    // {
    //     path: '/',
    //     component: Home,
    //     name: '系统管理',
    //     iconCls: 'fa fa-id-card-o',
    //     children: [
    //         { path: '/system1', component: DictionaryDetail, name: '数据字典明细' },
    //         { path: '/system', component: Dictionary, name: '数据字典类型(抽屉)' },
    //         { path: '/menu', component: Menu, name: '菜单管理' },
    //         { path: '/role', component:Role, name: '角色管理' },
    //         { path: '/permisson', component:Role, name: '权限管理' },
    //     ]
    // },
    // {
    //     path: '/',
    //     component: Home,
    //     name: '宠物管理',
    //     iconCls: 'fa fa-address-card',
    //     //leaf: true,//只有一个节点
    //     children: [
    //         { path: '/pet', component:Pet, name: '宠物管理' },
    //
    //     ]
    // },


];

export default routes;